<script>
import request from "./utils/request.js";
export default {
  onLaunch: function () {
    // request.defaults.baseURL = "https://h5.yiqilaiwang.com/"; //正式环境
    request.defaults.baseURL = "https://h5test.yiqilaiwang.com/"; //测试环境
  },
  onShow: function () {},
  onHide: function () {},
  watch: {
    $route() {
      if (window._czc) {
        let location = window.location;
        let contentUrl = location.pathname + location.hash;
        let refererUrl = "/";
        window._czc.push(["_trackPageview", contentUrl, refererUrl]);
      }
    },
  },
  mounted() {
    // 友盟统计添加
    const script = document.createElement("script");
    script.src =
      // "https://s4.cnzz.com/z_stat.php?id=1279696033&web_id=1279696033"; // 测试
    "https://s9.cnzz.com/z_stat.php?id=1279702426&web_id=1279702426";//正式
    script.language = "JavaScript";
    document.body.appendChild(script);
  },
};
</script>
<style>
/*每个页面公共css */
@import url("./style/font.css");
</style>
